<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{margin:0;padding:0;}
        .box{
            width:800px;
            height:500px;
            border:1px solid red;
            margin:0 auto;
        }
        .header,.footer{
            width:700px;
            height:50px;
            margin:20px auto;
            border:1px solid blue;
        }
        .content{
            width:700px;
            height:300px;
            border:1px solid green;
            margin:20px auto;
        }

        .one,.two{
            width:250px;
            height:240px;
            border:1px solid pink;
            margin:30px 40px;
            float:left;
        }
    </style>
</head>
<body>
   <div class="box">
       <div class="header"></div>
       <div class="content">
           <div class="one"></div>
           <div class="two"></div>
       </div>
       <div class="footer"></div>
   </div>
</body>
</html>